#include "xmpptextchattask.h"
#include "constants.h"

namespace tinkle {

XmppTextChatTask::XmppTextChatTask(Task *parent)
    : XmppTask(parent) {

}

XmppTextChatTask::XmppTextChatTask(const Jid &from, const Jid &to,
                                   Task *parent)
    : XmppTask(parent) {
      _from = from;
      _to = to;
}

XmppTextChatTask::~XmppTextChatTask() {

}

bool XmppTextChatTask::NextStanza(XmlNode *stanza) {
    if (stanza->GetElement()->GetName() == STR_MESSAGE) {
        return true;
    }
    return false;
}

}